package com.model;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;


@Entity
public class Lottery {

	private Integer id;
	private Integer click;//访问数目
	private String token;
	private String startPic;//开始图片
	private String zjpic;
	public String getZjpic() {
		return zjpic;
	}
	public void setZjpic(String zjpic) {
		this.zjpic = zjpic;
	}
	private String title;//标题
	private String txt;//兑奖联系说明
	private String sttxt;//开始文本
	private String startDate;//开始时间
	private String endDate;//结束时间
	private String info;//微信返回图文中的说明
	private String aginfo;//重复抽奖信息
	private String endTitle;//活动结束标题
	private String endPicUrl;//活动结束图片
	private String endInfo;//活动结束说明
	private String fist;//一等奖
	private Integer fistNums;//数目
	private Integer fistLuckNums;
	private String second;
	private String type;
	private Integer secondNums;
	private Integer secondLuckNums;
	private String third;
	private Integer thirdNums;
	private Integer thirdLuckNums;
	private Integer allpeople;
	private Integer canrqnums;
	private String parssword;
	private Integer renameSn;
	private String renameTel;
	private int displayJpNums;
	private String createTime;
	private String updateTime;
	private boolean snimport;
	public boolean isSnimport() {
		return snimport;
	}
	public void setSnimport(boolean snimport) {
		this.snimport = snimport;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	private int status;
	private String four;
	private Integer fourNums;
	private Integer fourLuckNums;
	private String five;
	private Integer fiveNums;
	private Integer fiveLuckNums;
	private String six;
	private Integer sixNums;
	private Integer sizLuckNums;
	private Keyword keyword;
	private Set<LotteryRecord> recordList;
	
	@OneToMany(mappedBy="lotery")
	public Set<LotteryRecord> getRecordList() {
		return recordList;
	}
	public void setRecordList(Set<LotteryRecord> recordList) {
		this.recordList = recordList;
	}
	@OneToOne
	@JoinColumn(name="keyid",insertable=true,unique=true)
	public Keyword getKeyword() {
		return keyword;
	}
	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getClick() {
		return click;
	}
	public void setClick(Integer click) {
		this.click = click;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getStartPic() {
		return startPic;
	}
	public void setStartPic(String startPic) {
		this.startPic = startPic;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTxt() {
		return txt;
	}
	public void setTxt(String txt) {
		this.txt = txt;
	}
	public String getSttxt() {
		return sttxt;
	}
	public void setSttxt(String sttxt) {
		this.sttxt = sttxt;
	}
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getAginfo() {
		return aginfo;
	}
	public void setAginfo(String aginfo) {
		this.aginfo = aginfo;
	}
	public String getEndTitle() {
		return endTitle;
	}
	public void setEndTitle(String endTitle) {
		this.endTitle = endTitle;
	}
	public String getEndPicUrl() {
		return endPicUrl;
	}
	public void setEndPicUrl(String endPicUrl) {
		this.endPicUrl = endPicUrl;
	}
	public String getEndInfo() {
		return endInfo;
	}
	public void setEndInfo(String endInfo) {
		this.endInfo = endInfo;
	}
	public String getFist() {
		return fist;
	}
	public void setFist(String fist) {
		this.fist = fist;
	}
	public Integer getFistNums() {
		return fistNums;
	}
	public void setFistNums(Integer fistNums) {
		this.fistNums = fistNums;
	}
	public Integer getFistLuckNums() {
		return fistLuckNums;
	}
	public void setFistLuckNums(Integer fistLuckNums) {
		this.fistLuckNums = fistLuckNums;
	}
	public String getSecond() {
		return second;
	}
	public void setSecond(String second) {
		this.second = second;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getSecondNums() {
		return secondNums;
	}
	public void setSecondNums(Integer secondNums) {
		this.secondNums = secondNums;
	}
	public Integer getSecondLuckNums() {
		return secondLuckNums;
	}
	public void setSecondLuckNums(Integer secondLuckNums) {
		this.secondLuckNums = secondLuckNums;
	}
	public String getThird() {
		return third;
	}
	public void setThird(String third) {
		this.third = third;
	}
	public Integer getThirdNums() {
		return thirdNums;
	}
	public void setThirdNums(Integer thirdNums) {
		this.thirdNums = thirdNums;
	}
	public Integer getThirdLuckNums() {
		return thirdLuckNums;
	}
	public void setThirdLuckNums(Integer thirdLuckNums) {
		this.thirdLuckNums = thirdLuckNums;
	}
	public Integer getAllpeople() {
		return allpeople;
	}
	public void setAllpeople(Integer allpeople) {
		this.allpeople = allpeople;
	}
	public Integer getCanrqnums() {
		return canrqnums;
	}
	public void setCanrqnums(Integer canrqnums) {
		this.canrqnums = canrqnums;
	}
	public String getParssword() {
		return parssword;
	}
	public void setParssword(String parssword) {
		this.parssword = parssword;
	}
	public Integer getRenameSn() {
		return renameSn;
	}
	public void setRenameSn(Integer renameSn) {
		this.renameSn = renameSn;
	}
	public String getRenameTel() {
		return renameTel;
	}
	public void setRenameTel(String renameTel) {
		this.renameTel = renameTel;
	}
	public int getDisplayJpNums() {
		return displayJpNums;
	}
	public void setDisplayJpNums(int displayJpNums) {
		this.displayJpNums = displayJpNums;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getFour() {
		return four;
	}
	public void setFour(String four) {
		this.four = four;
	}
	public Integer getFourNums() {
		return fourNums;
	}
	public void setFourNums(Integer fourNums) {
		this.fourNums = fourNums;
	}
	public Integer getFourLuckNums() {
		return fourLuckNums;
	}
	public void setFourLuckNums(Integer fourLuckNums) {
		this.fourLuckNums = fourLuckNums;
	}
	public String getFive() {
		return five;
	}
	public void setFive(String five) {
		this.five = five;
	}
	public Integer getFiveNums() {
		return fiveNums;
	}
	public void setFiveNums(Integer fiveNums) {
		this.fiveNums = fiveNums;
	}
	public Integer getFiveLuckNums() {
		return fiveLuckNums;
	}
	public void setFiveLuckNums(Integer fiveLuckNums) {
		this.fiveLuckNums = fiveLuckNums;
	}
	public String getSix() {
		return six;
	}
	public void setSix(String six) {
		this.six = six;
	}
	public Integer getSixNums() {
		return sixNums;
	}
	public void setSixNums(Integer sixNums) {
		this.sixNums = sixNums;
	}
	public Integer getSizLuckNums() {
		return sizLuckNums;
	}
	public void setSizLuckNums(Integer sizLuckNums) {
		this.sizLuckNums = sizLuckNums;
	}
	
	
}
